﻿//
//  HFViewController.m
//  HFBaseHTTPRequestManagerModule
//
//  Created by baiye on 04/10/2020.
//  Copyright (c) 2020 baiye. All rights reserved.
//

#import "HFViewController.h"
#import <HFBaseHTTPRequestManagerModule/HFBaseHTTPRequestManagerModule.h>

@interface HFViewController ()

@end

@implementation HFViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    /*
//    HFBaseHTTPRequestManager.manager.URLHostKey = @"正式环境-域名";
    [HFHttpLJCFactory factory]
    .setDomain(DOMAIN_FINANCE)
    .setPath(@"MobileService/merchantLogin")
    .setRequest(@{})
    .setResponseBlock(^(id<HFHttpResponseModel> resp) {
//        HFHttpResonseModule *module = (HFHttpResonseModule *)resp;
        NSLog(@"success=====%@",resp);
    })
    .setErrorBock(^(id<HFHttpFailModel> error) {
//        HFHttpError *httpError = [HFHttpError yy_modelWithJSON:error];
        NSLog(@"error======%@",error);
    })
    .post();
    
    [HFHttpLJCFactory factory]
    .setDomain(DOMAIN_FINANCE)
    .setPath(@"MobileService/checkversionsionInfo")
    .setRequest(@{})
    .setResponseBlock(^(id<HFHttpResponseModel> resp) {
//        HFHttpResonseModule *module = (HFHttpResonseModule *)resp;
        NSLog(@"success1======%@",resp);
    })
    .setErrorBock(^(id<HFHttpFailModel> error) {
//        HFHttpError *httpError = [HFHttpError yy_modelWithJSON:error];
        NSLog(@"error1======%@",error);
    })
    .post();
    */
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

